{% load i18n %}

<div class="list-group">
  {% comment %}
  <a href="{% url 'inbox' %}" class="list-group-item{% if active == 'inbox' %} active{% endif %}">
    <span>{% trans 'Inbox' %}</span>
    <span class="badge">0</span>
  </a>
  {% endcomment %}

  {% for conversation in conversations %}
    <a href="{% url 'messages' conversation.user.username %}" 
      class="list-group-item{% if active == conversation.user.username %} active{% endif %}">
      <img src="{{ conversation.user.profile.get_picture }}" class="conversation-portrait">
      {{ conversation.user.profile.get_screen_name }}
      {% if conversation.unread > 0 %}
        <span class="badge pull-right">{{ conversation.unread }}</span>
      {% endif %}
    </a>
  {% empty %}
    <a href="#" class="list-group-item">{% trans 'Start a conversation' %}</a>
  {% endfor %}
</div>